package com.chenfan.mcn.exception;

import com.chenfan.common.exception.BusinessException;
import com.chenfan.common.exception.ResultState;
import lombok.Getter;

/**
 * @author wulg
 * @date 2023/10/27
 */
@Getter
public class RepeatedDataExeception extends BusinessException {

    private Object data;

    public RepeatedDataExeception(ResultState resultState, Object data) {
        super(resultState.code(), resultState.message());
        this.data = data;
    }

    public RepeatedDataExeception(int code, String message, Object data) {
        super(code, message);
        this.data = data;
    }
}
